# Config.py

from Map_Data import maps

TLSIZE = 64
HEIGHT = 960
WIDTH = 1280
FPS = 60
GAMEBACKGROUND = (255, 255, 255)
FIGHTBGM = 'assets/fightbgm.wav'
SHOTMUSIC = 'assets/shot.mp3'
BOOMMUSIC = 'assets/boom.wav'
PVP = False
PAIRMODE = True
MAXMAP = len(maps) - 1
DEADPAGE = 'assets/R-C.jpg'
FONT = 'assets/fusion-pixel-10px-monospaced-latin.ttf'

ENEMYLV = [
    0,
    (1, 200, 4, 500),
    (2, 175, 4, 450),
    (4, 150, 8, 400),
    (4, 150, 8, 350),
    (10, 150, 8, 350),
]

MAXLV = 5

PLAYERLV = [
    0,
    (1, 1, 4, 500),
    (2, 2, 4, 450),
    (4, 4, 8, 400),
    (8, 8, 8, 350),
    (16, 99999, 8, 300),
]

def get_tlszie():
    return TLSIZE

def set_tlszie(value):
    global TLSIZE
    TLSIZE = value

def get_height():
    return HEIGHT

def set_height(value):
    global HEIGHT
    HEIGHT = value

def get_width():
    return WIDTH

def set_width(value):
    global WIDTH
    WIDTH = value

def get_fps():
    return FPS

def set_fps(value):
    global FPS
    FPS = value

def get_gamebackground():
    return GAMEBACKGROUND

def set_gamebackground(value):
    global GAMEBACKGROUND
    GAMEBACKGROUND = value

def get_fightbgm():
    return FIGHTBGM

def set_fightbgm(value):
    global FIGHTBGM
    FIGHTBGM = value

def get_shotmusic():
    return SHOTMUSIC

def set_shotmusic(value):
    global SHOTMUSIC
    SHOTMUSIC = value

def get_boommusic():
    return BOOMMUSIC

def set_boommusic(value):
    global BOOMMUSIC
    BOOMMUSIC = value

def get_pvp():
    return PVP

def set_pvp(value):
    global PVP
    PVP = value

def get_pairmode():
    return PAIRMODE

def set_pairmode(value):
    global PAIRMODE
    PAIRMODE = value

def get_maxmap():
    return MAXMAP

def set_maxmap(value):
    global MAXMAP
    MAXMAP = value

def get_deadpage():
    return DEADPAGE

def set_deadpage(value):
    global DEADPAGE
    DEADPAGE = value

def get_font():
    return FONT

def set_font(value):
    global FONT
    FONT = value

def get_enemy_lv():
    return ENEMYLV

def set_enemy_lv(value):
    global ENEMYLV
    ENEMYLV = value

def get_max_lv():
    return MAXLV

def set_max_lv(value):
    global MAXLV
    MAXLV = value

def get_player_lv():
    return PLAYERLV

def set_player_lv(value):
    global PLAYERLV
    PLAYERLV = value